package com.swn.game;

import java.util.Scanner;

public class guess {
    public static void main(String[] args) {
        T1();
    }
    public static void T1() {
        while (true){
            System.out.println("请您猜一个数字：");
            Scanner input=new Scanner(System.in);
            int i =input.nextInt();
            A a=new A();

            if (i>a.v){
                System.out.println("对不起，您猜大了！");
            }else if (i<a.v){
                System.out.println("很抱歉，您猜小了！");
            }else {
                System.out.println("恭喜，您猜对了！！");
                break;
            }

        }
    }
}
